From: Julien Grall Date: Thu, 15 Jan 2015 21:06:17 +0000 (+0000) Subject: tools/configure: Check if Glib is present only when building QEMU X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3905 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=499cb19b120a6ed4a2a4917b7c9e04170bf7c347;p=xen.git tools/configure: Check if Glib is present only when building QEMU Signed-off-by: Julien Grall Acked-by: Ian Campbell Acked-by: Ian Jackson [ ijc -- reran autogen.sh ] --- diff --git a/tools/configure b/tools/configure index 1cab804704..7131d63375 100755 --- a/tools/configure +++ b/tools/configure @@ -7462,6 +7462,7 @@ fi + if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. @@ -7575,6 +7576,8 @@ $as_echo "no" >&6; } PKG_CONFIG="" fi fi +if test "x$qemu_xen" = "xy"; then : + pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5 @@ -7667,6 +7670,8 @@ $as_echo "yes" >&6; } fi +fi + # Extract the first word of "wget", so it can be a program name with args. set dummy wget; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 diff --git a/tools/configure.ac b/tools/configure.ac index 24fdfc3766..fd405c5904 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -323,7 +323,11 @@ i[[3456]]86|x86_64) esac AX_CHECK_UUID AX_CHECK_CURSES + +dnl Glib 2.0 is only required when QEMU is built +AS_IF([test "x$qemu_xen" = "xy"], [ PKG_CHECK_MODULES(glib, [glib-2.0 >= 2.12]) +]) AX_CHECK_FETCHER # Checks for libraries.